{% extends 'base.html' %}

{% block title %}
    登入
{% endblock %}

{% block head %}

{% endblock %}


{% block body %}
    <div class="row mt-3">
        <div class="col"></div>
        <div class="col">
            <form action="{{ url_for('user.login') }}" method="post">
                <div class="form-group">
                    <label for="exampleInputEmail1">邮箱</label>
                    <input type="email" class="form-control" aria-describedby="emailHelp" name="email">
                    <small class="form-text text-muted">我们不会把邮箱用于其他用途</small>
                </div>
                <div class="form-group">
                    <label for="exampleInputPassword1">密码</label>
                    <input type="password" class="form-control" name="password">
                </div>
                {% for message in get_flashed_messages() %}
                    <div class="form-group ">
                        <div class="text-danger">{{ message }}</div>
                    </div>
                {% endfor %}



                <button type="submit" class="btn btn-primary btn-block">立即登入</button>
            </form>
        </div>
        <div class="col"></div>
    </div>
{% endblock %}